package com.hsj.boot.controller;

import com.hsj.boot.bean.User;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Resource
    private User user;

    @GetMapping("/hello")
    public String hello() {
        return "nihao"+user.getName();
    }
}
